#ifndef DRAGWIDGET_H
#define DRAGWIDGET_H

#include <QWidget>
#include <QLabel>
#include <QMap>

class DragWidget : public QWidget
{
    Q_OBJECT
public:
    DragWidget(QWidget *parent = nullptr);
    virtual ~DragWidget();

public:
    void adjustGeometry(double lfWidthScale, double lfHeightScale, bool isVertical = false, bool floatStatus = false);

private:
    void initUI();

private:
    QLabel *m_labelDrag = nullptr;
    QMap<QLabel*, QRect> m_mapSubGeometrys;
};

#endif // DRAGWIDGET_H
